package social.hub.api.facebook;

import java.util.Date;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonDeserialize;

import social.hub.api.facebook.util.FacebookDateDeserializer;

@JsonIgnoreProperties(ignoreUnknown = true)
public class FacebookPost {

	private String type;

	@JsonProperty("created_time")
	@JsonDeserialize(using = FacebookDateDeserializer.class)
	private Date createdTime;

	@JsonProperty("updated_time")
	@JsonDeserialize(using = FacebookDateDeserializer.class)
	private Date updatedTime;
	private String message;

	public void setMessage(String message) {
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

}
